package com.cxj.link.view;

import com.cxj.link.vo.GameConfig;

import java.lang.reflect.Array;

public class Board extends AbstractBoard {
    @Override
    protected int[][] initPieces(GameConfig paramGameConf) {
        int k = paramGameConf.getXSize();
        int j = paramGameConf.getYSize();
        int[] arrayOfInt = new int[2];
        arrayOfInt[0] = k;
        arrayOfInt[1] = j;
        int[][] arrayOfInt1 = (int[][]) Array.newInstance(Integer.TYPE, arrayOfInt);
        for (int i = 0; i < arrayOfInt1.length; i++)
            for (j = 0; j < arrayOfInt1[i].length; j++)
                arrayOfInt1[i][j] = 1;
        return arrayOfInt1;
    }
}